package com.esa.tois;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.List;

import org.xml.sax.SAXException;

import com.esa.doxml.CreateShareXML;
import com.esa.javabean.Course;

public class TransCourse {
	private Transmit       ctis;
	private CreateShareXML   ccx;
	
	public TransCourse() throws UnknownHostException, IOException{
		ctis=new Transmit();
		ccx=new CreateShareXML();
	}
	public void trans(List<Course> list) throws IOException, SAXException{
		ctis.transmitXML(ccx.createFile(list));
	}
}
